package com.wzy.service;

import com.wzy.entity.Blog;
import com.wzy.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wzy.entity.Violence;
import com.wzy.util.Pager;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wzy
 * @since 2021-02-09
 */
public interface VideoService extends IService<Video> {

    List<Video> getVideo(Integer nums);

    public boolean append(Video video);

    public boolean remove(Long videoId);

    public boolean modify(Video video);

    /**
     * 根据videoId查询推荐
     * @param videoId
     * @return
     */
    public Video detail(Long videoId);

    /**
     * 分页查询推荐
     * @param page
     * @return
     */
    public Pager<Video> list(Integer page);

    /**
     * 查询全部推荐
     * @return
     */
    public List<Video> list();

}
